package com.bussiness.system.util;


import com.baomidou.mybatisplus.plugins.Page;

import java.io.Serializable;
import java.util.Map;

/**
 * @Auther: xlr
 * @Date: 2018/8/11 14:42
 * @Description:
 */
public abstract class Query implements Serializable {

    /**
     * 页数
     */
    private Integer pageNum;
    /**
     * 行数
     */
    private Integer pageSize;
    /**
     * 用户ID
     */
    private Integer userId;


    public Integer getPageNum() {
        return pageNum*0 >0 ? pageSize*(pageNum-1):0;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
